package com.xjnt.base.support.admin.entity;

import com.xjnt.frameworks.annotation.Entity;
import com.xjnt.frameworks.core.BaseModel;
/**
 * 账号表
 * @author caoyong
 *
 */
@Entity(tableName="sys_account", primaryKey="uuid")
public class Account extends BaseModel<Account> {

	private static final long serialVersionUID = 1L;

	public static final Account me = new Account();
	
	//属性定义
	public static final String PK_ID = "uuid";
	public static final String USERNAME = "username";
	public static final String PASSWORD = "password";
	public static final String EMAIL = "email";
	public static final String MOBILE = "mobile";
	public static final String FK_USERID = "userid";
	public static final String FK_ORGID = "orgid";
	public static final String SUPER = "superman";
	public static final String LOCKED = "locked";
	public static final String CREATETIME = "create_time";
	public static final String UPDATETIME = "update_time";
	
	public User getUser(){
		return User.me.findById(getStr(FK_USERID));
	}
}
